package com.yurui.config;

import org.springframework.beans.factory.InitializingBean;

import javax.annotation.PostConstruct;

public class ServiceName implements InitializingBean {

    private User user;

    public ServiceName(){
        System.out.println("serviceName 构造方法...");
    }

    public void init(){
        System.out.println("serviceName init...");
    }

    @PostConstruct
    public void annoInit(){
        System.out.println("serviceName annoInit...");
    }

    public void say(){
        System.out.println("serviceName say...");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("serviceName afterPropertiesSet...");
    }

    public void setUser(User user) {

        this.user = user;
    }
}
